<?php 

header("Content-type: text/html; charset=utf-8"); 
include_once './Animal.class.php';
include_once './Car.class.php';   //引进我们封装好的一个车的类;
include_once './Cat.class.php';
include_once './Dog.class.php';


// $obj = new Car();  //new一下才会产生一个具体的对象
// $obj->run();
// $obj->color='red';
// echo $obj->color;
// $obj1 = new Car;
// echo $obj1->color;

// $obj = new Cat('小黄猫','18');
// $obj->run ('跑的好快呀');


$obj = new Dog('小黄狗','18');
$obj->eat();
echo $obj->jiao;











 ?>